package com.sgcc.pda.mdrh.h5.jsbridge;

import com.tencent.smtt.export.external.interfaces.GeolocationPermissionsCallback;
import com.tencent.smtt.sdk.WebChromeClient;

public class MixWebChromeClient extends WebChromeClient {

    //配置权限（同样在WebChromeClient中实现）//用于H5的定位
    @Override
    public void onGeolocationPermissionsShowPrompt(String origin, GeolocationPermissionsCallback callback) {
        callback.invoke(origin, true, false);
        super.onGeolocationPermissionsShowPrompt(origin, callback);
    }
}

